package com.tvunetworks.center.user.controller.feign;

import com.tvunetworks.center.common.feign.GridServerFeignInterface;
import com.tvunetworks.center.user.service.GridServerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @program:
 * @description:
 * @author HenryChen
 * @create: 11/28/2019 2:27 PM
 **/
@RestController
@RequestMapping("/feign/gridServer")
@Slf4j
public class GridServerFeignController implements GridServerFeignInterface {

    @Autowired
    private GridServerService gridServerService;

    @Override
    public List<Map<String, String>> getBindXByRids(@RequestParam String rIds, @RequestParam String condition) throws Exception {
        return gridServerService.getBindXByRids(rIds, condition);
    }
}
